﻿@model WebUI.Models.CheckBoxListModel
@{
    AjaxOptions ajaxOpts = new AjaxOptions
    {
        InsertionMode = InsertionMode.Replace,
        HttpMethod = "POST",
        OnSuccess = "hostsFormSubmitted"
    };
}
@using (Ajax.BeginForm(MVC.Filters.HostsDialogResult(), ajaxOpts, new { @id = "submitHosts" }))
{
    @Html.CheckBoxList("Hosts",
                   x => x.AllData,
                   x => x,
                   x => x,
                   x => x.SelectedData)
}